package maxflow;

import support.AlgorithmSupport;

public class TestMaxflow {
	public static void main(String[] args) {
		double[] variance = { 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 };
		int sim_Num = 5000;
		int product_num = 40;

		for (int i = 0, len = variance.length; i < len; i++) {
			// System.out.println("variance=" + variance[i]);
			MaxFlow wshape = new MaxFlow(product_num, 500, AlgorithmSupport.W_SHAPE);
			wshape.setVariance(variance[i]);
			double exp = wshape.getExpectedMaxFlow();

			MaxFlow chaining = new MaxFlow(product_num, sim_Num, AlgorithmSupport.CHAINING);
			chaining.setVariance(variance[i]);
			double va = chaining.getExpectedMaxFlow();
			System.out.println(exp + "," + va);

		}
	}
}
